package db.dao;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;



import org.springframework.stereotype.Component;

import db.dto.BookVo;
import db.dto.IsbnSaveDto;
import db.dto.SheetDto;
import db.mybatis.UploadManager;

@Component("uploadDao")
public class UploadDaoImpl implements UploadDao{

	@Override
	public void insertExcel(String xslPath) {
			 UploadManager.insertExcel(xslPath);
	}

	@Override
	public String getBooks(String snum) {
		// TODO Auto-generated method stub
		return UploadManager.getBooks(snum);
	}

	@Override
	public void update(String b_jemok, String num, String snum, String tablename) {
		UploadManager.update(b_jemok,num, snum, tablename);
	}

	@Override
	public void nameupdate(String b_name, String num, String snum, String tablename) {
		
		UploadManager.nameupdate(b_name, num, snum, tablename);
	}

	@Override
	public String getSheetNumAndNames(String xslPath) {
		// TODO Auto-generated method stub
		return UploadManager.getSheetNumAndNames(xslPath);
	}

	@Override
	public String getSheetList(String tableName) {
	
		return UploadManager.getSheetList(tableName);
	}

	@Override
	public String getFileName(String snum) {
		// TODO Auto-generated method stub
		return UploadManager.getFileName(snum);
	}

	@Override
	public void companyupdate(String b_company, String num, String snum, String tablename) {
		// TODO Auto-generated method stub
		UploadManager.companyupdate(b_company, num, snum, tablename);
	}

	@Override
	public void isbnSave(String snum,IsbnSaveDto dto) {
		// TODO Auto-generated method stub
		UploadManager.isbnSave(snum, dto);
	}

	@Override
	public void isbnupdate(String b_isbn, String num, String snum, String tablename) {
		// TODO Auto-generated method stub
		UploadManager.isbnupdate(b_isbn, num, snum, tablename);
	}

	@Override
	public void excelSave(String snum,String sname, String excelPath, String tablename) throws IOException {
		// TODO Auto-generated method stub
		UploadManager.excelSave(snum,sname,excelPath, tablename);
	}

	@Override
	public void alldelete(String excelPath, String tablename) {
		UploadManager.alldelete(excelPath, tablename);
	}

	@Override
	public boolean isLogin(String id, String pwd) {
		// TODO Auto-generated method stub
		return UploadManager.isLogin(id, pwd);
	}

}
